﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Eleven.BreakAway.Model;

namespace Eleven.BreakAway.DataAccess
{
    class ActivityConfiguration : EntityTypeConfiguration<Activity>
    {
        public ActivityConfiguration()
        {
            Property(a => a.Name).IsRequired().HasMaxLength(50);
            HasMany(a => a.Trips).WithMany(t => t.Activities);
        }
    }
}
